package com.pubinfo.passbook.common.controller;

import com.pubinfo.passbook.common.entity.TFileEnclosureFtp;
import com.pubinfo.passbook.common.model.ruler.Reimbursement;
import com.pubinfo.passbook.common.model.vo.base.JsonResult;
import com.pubinfo.passbook.common.service.dedicated.DedicatedService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "test")
@Api(tags = "生成excel测试")
@Slf4j
public class ExcelController {
  @Autowired
  DedicatedService createExcelService;
  
  @PostMapping("createExcelByClass")
  @ApiOperation(value = "生成excel测试")
  public JsonResult<TFileEnclosureFtp> createExcelByClass(@RequestBody List<Reimbursement> reimbursement) {
    return JsonResult.success(createExcelService.createExcelByClass(reimbursement));
    
  }
}
